<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<aside class="main-sidebar">
	<section class="sidebar">
		<div class="user-panel">
			<div class="pull-left image">
				<img src="${_userInfo_.headImg }" style="width:45px;height: 45px;" class="img-circle" alt="User Image">
			</div>
			<div class="pull-left info">
				<p>${_userInfo_.userName }</p>
				<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
			</div>
		</div>
		
		<!-- <form action="#" method="get" class="sidebar-form">
			<div class="input-group">
				<input type="text" name="q" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
              </span>
			</div>
		</form> -->
		
		
		
		<ul class="sidebar-menu">
			<li class="header">ASONE-MANAGE</li>
			<c:forEach var="sourceTree" items="${_userResource_.sourceTree}">
				<li class="treeview">
					<!-- 一级菜单 -->
					<c:if test="${sourceTree.resourceType==0}">
						<a href="#">
							<i class="fa ${sourceTree.iconClass}"></i> 
							<span>${sourceTree.resourceName}</span> 
							<i class="fa fa-angle-left pull-right"></i>
						</a>
					</c:if>
					<c:if test="${sourceTree.resourceType==1}">
						<a href="${sourceTree.url}">
							<i class="fa ${sourceTree.iconClass}"></i> 
							<span>${sourceTree.resourceName}</span> 
							<i class="fa fa-angle-left pull-right"></i>
						</a>
					</c:if>
					<!-- 二级菜单 -->
					<c:if test="${not empty sourceTree.resourceChild}">
						<ul class="treeview-menu">
							<c:forEach var="resourceChild" items="${sourceTree.resourceChild}">
								<c:if test="${resourceChild.resourceType==1}">
									<li>
										<a href="${resourceChild.url}">
										 	<i class="fa ${resourceChild.iconClass}"></i> ${resourceChild.resourceName}
									 	</a>
								 	</li>
								</c:if>
							</c:forEach>
						</ul>
					</c:if>
				</li>
			</c:forEach>
		</ul>
	</section>
</aside>